class Student:
    name = None

    def say_hi(self):
        print("Hello, my name is %s" % self.name)
    def say_hi2(self,msg):
        print(f"你好我是{self.name},{msg}")

#成员方法使用
student = Student()
student.name = '林俊杰'
student.say_hi()

student1 = Student()
student1.name = '周杰伦'
student1.say_hi2('哎呦不错哦')